<html>
	<head>
		<meta name="layout" content="common">
		<title></title>
	</head>
	<body>
		<div class="post">
			<h1 class="title">${post.titulo}</h1>
			<p>${post.conteudo}</p>
			<p>${post.autor}- <i>${post.dataPost}</i></p>
		</div>	
		
		<div class="comentario">
			<g:each in="${post.comentarios}" >
				<p class="autor">${it.autor}</p>
				<p class="comentario-conteudo">${it.conteudo}</p>
			</g:each>
				
		</div>
		
		<div class="add-comentario">
			<g:form action="comentario" id="${post.id}">
				<input type="text" name="autor" placeholder="Nome"/>
				<g:textArea name="conteudo" placeholder="Comentario"></g:textArea>
				<g:submitButton name="Enviar">Send</g:submitButton> 
			</g:form>
		</div>	
	</body>
</html>
